{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post" enctype="">
            <div class="layui-form-item">
                <div class="layui-inline">
                  <label class="layui-form-label">名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" value="{$data.name|default=''}" autocomplete="off" placeholder="请输入名称" lay-verify="required|name" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">打赏类型</label>
                    <div class="layui-input-inline">
                        <select name="reward_type" lay-verify="required" lay-search="">
                            <option value="">请选择商品分类</option>
                            <option value="1" {if condition="isset($data) and $data.reward_type eq 1"}selected{/if}>直播</option>
                            <option value="2" {if condition="isset($data) and $data.reward_type eq 2"}selected{/if}>视频</option>
                            <option value="3" {if condition="isset($data) and $data.reward_type eq 3"}selected{/if}>文章</option>
                            <option value="4" {if condition="isset($data) and $data.reward_type eq 4"}selected{/if}>其他</option>
                        </select>
                    </div>
                </div>
              </div>
              <div class="layui-form-item">
                <div class="layui-inline">
                  <label class="layui-form-label">描述</label>
                    <div class="layui-input-inline">
                        <textarea name="describe" placeholder="请输入内容" class="layui-textarea">{$data.describe|default=''}</textarea>
                    </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">缩略图</label>
                    <div class="layui-input-inline">
                        
                    </div>
                </div>
              </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                  <label class="layui-form-label">打赏限额</label>
                    <div class="layui-input-inline">
                        <input type="text" name="max" value="{$data.max|default=''}" autocomplete="off" placeholder="请输入每人限额" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">打赏总数</label>
                    <div class="layui-input-inline">
                        <input type="number" name="total" value="{$data.total|default=''}" autocomplete="off" placeholder="请输入打赏总数" lay-verify="required" class="layui-input">
                    </div>
                </div>
              </div>
              <div class="layui-form-item">
                <div class="layui-inline">
                  <label class="layui-form-label">剩余份数</label>
                    <div class="layui-input-inline">
                        <input type="text" name="surplus" value="{$data.surplus|default=''}" autocomplete="off" placeholder="请输入剩余份数" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label"></label>
                    <div class="layui-input-inline">
                        
                    </div>
                </div>
              </div>
              <div class="layui-form-item">
                <div class="layui-inline">
                  <label class="layui-form-label">带货平台</label>
                    <div class="layui-input-inline">
                        <select name="platform" lay-verify="required" lay-search="">
                            <option value="">请选择商品分类</option>
                            <option value="1" {if condition="isset($data) and $data.platform eq 1"}selected{/if}>抖音</option>
                            <option value="2" {if condition="isset($data) and $data.platform eq 2"}selected{/if}>淘宝</option>
                            <option value="3" {if condition="isset($data) and $data.platform eq 3"}selected{/if}>火山</option>
                            <option value="4" {if condition="isset($data) and $data.platform eq 4"}selected{/if}>其他</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">带货账号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="account" value="{$data.account|default=''}" autocomplete="off" placeholder="请输入账号" lay-verify="required" class="layui-input">
                    </div>
                </div>
              </div>
              <div class="layui-form-item">
                <div class="layui-inline">
                  <label class="layui-form-label">打赏周期</label>
                    <div class="layui-input-inline">
                        <input type="number" name="duration" maxlength="3" value="{$data.duration|default=''}" autocomplete="off" placeholder="请输入周期" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">直播时长</label>
                    <div class="layui-input-inline">
                        <input type="text" name="duration" value="{$data.duration|default=''}" autocomplete="off" placeholder="请输入直播时长" lay-verify="required" class="layui-input">
                    </div>
                </div>
              </div>
              <div class="layui-form-item">
                <div class="layui-inline">
                  <label class="layui-form-label">观看人数</label>
                    <div class="layui-input-inline">
                        <input type="number" name="people" value="{$data.people|default=''}" autocomplete="off" placeholder="请输入观看人数" lay-verify="required" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                  <label class="layui-form-label">直播热度</label>
                    <div class="layui-input-inline">
                        <input type="text" name="hot" value="{$data.hot|default=''}" autocomplete="off" placeholder="请输入热度" lay-verify="required" class="layui-input">
                    </div>
                </div>
              </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="i" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
